#pragma once
#include <Effect.h>
#include <Data.h>
class EffectManagement
{
private:
    std::vector<Effect *> effects_list;
public:
    EffectManagement(/* args */) = default;
    ~EffectManagement();

    Effect *createEffect(ym::Json *data, Vector2 position, real facing, real aliveTime);

    void destroyEffect(Effect *effect);

    const std::vector<Effect *>* getEffects();

    void update(real delta);
};